using QFramework.Framework.Util;
using UnityEditor;
using UnityEngine;

namespace QFramework.Example._8.Singleton
{
    public class SingleTonExample : Singleton<SingleTonExample>
    {
        private SingleTonExample()
        {
            Debug.Log("SingletonExample ctor");
        }
#if UNITY_EDITOR
        [MenuItem("QFramework/Example/8.Singleton", false, 8)]
        private static void MenuClicked()
        {
            var initInstance = Instance;
            initInstance = Instance;
        }
#endif
    }
}